home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / bcfamily / source / mouse.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-12  |  4.8 KB  |  273 lines

  1. //
  2. //      *******************************************************************
  3. //        JdeBP C++ Library Routines          General Public Licence v1.00
  4. //            Copyright (c) 1991,1992     Jonathan de Boyne Pollard
  5. //      *******************************************************************
  6. //
  7. // Part of FamAPI.LIB
  8. //
  9.  
  10. #include "famapi.h"
  11. #include "dosdos.h"
  12.  
  13. #pragma argsused
  14. //
  15. //    Register a mouse subsystem
  16. //
  17. USHORT _APICALL
  18. MouRegister ( const UCHAR far *PtrModuleName,
  19.               const UCHAR far *PtrEntryName,
  20.               ULONG Functions )
  21. {
  22.     return ERROR_MOUSE_NO_DEVICE ;
  23. }
  24.  
  25. #pragma argsused
  26. //
  27. //    Deregister a mouse subsystem
  28. //
  29. USHORT _APICALL
  30. MouDeRegister ( void )
  31. {
  32.     return NO_ERROR ;
  33. }
  34.  
  35. #pragma argsused
  36. //
  37. //    Flush the mouse queue
  38. //
  39. USHORT _APICALL
  40. MouFlushQue ( USHORT MouseHandle )
  41. {
  42.     return NO_ERROR ;
  43. }
  44.  
  45. #pragma argsused
  46. //
  47. //    Get the button mask for the hotkey
  48. //
  49. USHORT _APICALL
  50. MouGetHotKey ( USHORT far *PtrButtons,
  51.                USHORT MouseHandle )
  52. {
  53.     return ERROR_MOUSE_NO_DEVICE ;
  54. }
  55.  
  56. #pragma argsused
  57. //
  58. //    Set the button mask for the hotkey
  59. //
  60. USHORT _APICALL
  61. MouSetHotKey ( USHORT far *PtrButtons,
  62.                USHORT MouseHandle )
  63. {
  64.     return ERROR_MOUSE_NO_DEVICE ;
  65. }
  66.  
  67. #pragma argsused
  68. //
  69. //    Get the current position of the mouse
  70. //
  71. USHORT _APICALL
  72. MouGetPtrPos ( PTRLOC far *PtrPosition,
  73.                USHORT MouseHandle )
  74. {
  75.     return ERROR_MOUSE_NO_DEVICE ;
  76. }
  77.  
  78. #pragma argsused
  79. //
  80. //    Set the current position of the mouse
  81. //
  82. USHORT _APICALL
  83. MouSetPtrPos ( PTRLOC far *PtrPosition,
  84.                USHORT MouseHandle )
  85. {
  86.     return ERROR_MOUSE_NO_DEVICE ;
  87. }
  88.  
  89. #pragma argsused
  90. //
  91. //    Alter the shape of the mouse
  92. //
  93. USHORT _APICALL
  94. MouSetPtrShape ( BYTE far *PtrBuffer,
  95.                  PTRSHAPE far *PtrInfo,
  96.                  USHORT MouseHandle )
  97. {
  98.     return ERROR_MOUSE_NO_DEVICE ;
  99. }
  100.  
  101. #pragma argsused
  102. //
  103. //    Alter the shape of the mouse
  104. //
  105. USHORT _APICALL
  106. MouGetPtrShape ( BYTE far *PtrBuffer,
  107.                  PTRSHAPE far *PtrInfo,
  108.                  USHORT MouseHandle )
  109. {
  110.     return ERROR_MOUSE_NO_DEVICE ;
  111. }
  112.  
  113. #pragma argsused
  114. //
  115. //    Retrieve the configuration of the mouse driver
  116. //
  117. USHORT _APICALL
  118. MouGetDevStatus ( USHORT far *PtrDevStatus,
  119.                   USHORT MouseHandle )
  120. {
  121.     return ERROR_MOUSE_NO_DEVICE ;
  122. }
  123.  
  124. #pragma argsused
  125. //
  126. //    Get the number of buttons on the mouse
  127. //
  128. USHORT _APICALL
  129. MouGetNumButtons ( USHORT far *PtrButtons,
  130.                    USHORT MouseHandle )
  131. {
  132.     return ERROR_MOUSE_NO_DEVICE ;
  133. }
  134.  
  135. #pragma argsused
  136. //
  137. //    Get the number of mickeys per centimetre
  138. //
  139. USHORT _APICALL
  140. MouGetNumMickeys ( USHORT far *PtrMickeys,
  141.                    USHORT MouseHandle )
  142. {
  143.     return ERROR_MOUSE_NO_DEVICE ;
  144. }
  145.  
  146. #pragma argsused
  147. //
  148. //    Read a mouse event from the queue
  149. //
  150. USHORT _APICALL
  151. MouReadEventQue ( MOUEVENTINFO far *PtrEvent,
  152.                   USHORT far *PtrWait,
  153.                   USHORT MouseHandle )
  154. {
  155.     PtrEvent->fs = PtrEvent->row = PtrEvent->col = PtrEvent->Time = 0 ;
  156.     return ERROR_MOUSE_NO_DEVICE ;
  157. }
  158.  
  159. #pragma argsused
  160. //
  161. //    Get the number of elements waiting in the queue
  162. //
  163. USHORT _APICALL
  164. MouGetNumQueEl ( MOUQUEINFO far *PtrNumEvents,
  165.                  USHORT MouseHandle )
  166. {
  167.     return ERROR_MOUSE_NO_DEVICE ;
  168. }
  169.  
  170. #pragma argsused
  171. //
  172. //    Obtain the event wask for the queue
  173. //
  174. USHORT _APICALL
  175. MouGetEventMask ( USHORT far *PtrEventMask,
  176.                   USHORT MouseHandle )
  177. {
  178.     return ERROR_MOUSE_NO_DEVICE ;
  179. }
  180.  
  181. #pragma argsused
  182. //
  183. //    Alter the event wask for the queue
  184. //
  185. USHORT _APICALL
  186. MouSetEventMask ( USHORT far *PtrEventMask,
  187.                   USHORT MouseHandle )
  188. {
  189.     return ERROR_MOUSE_NO_DEVICE ;
  190. }
  191.  
  192. #pragma argsused
  193. //
  194. //    Obtain the scale factor
  195. //
  196. USHORT _APICALL
  197. MouGetScaleFact ( SCALEFACT far *PtrFactors,
  198.                   USHORT MouseHandle )
  199. {
  200.     return ERROR_MOUSE_NO_DEVICE ;
  201. }
  202.  
  203. #pragma argsused
  204. //
  205. //    Alter the scale factor
  206. //
  207. USHORT _APICALL
  208. MouSetScaleFact ( SCALEFACT far *PtrFactors,
  209.                   USHORT MouseHandle )
  210. {
  211.     return ERROR_MOUSE_NO_DEVICE ;
  212. }
  213.  
  214. #pragma argsused
  215. //
  216. //    Open the mouse driver
  217. //
  218. USHORT _APICALL
  219. MouOpen ( const UCHAR far *PtrDriverName,
  220.           USHORT far *PtrMouseHandle )
  221. {
  222.     return ERROR_MOUSE_NO_DEVICE ;
  223. }
  224.  
  225. #pragma argsused
  226. //
  227. //    Close the mouse driver
  228. //
  229. USHORT _APICALL
  230. MouClose ( USHORT MouseHandle )
  231. {
  232.     return NO_ERROR ;
  233. }
  234.  
  235. #pragma argsused
  236. //
  237. //    Hide the mouse pointer within the given rectangle
  238. //
  239. USHORT _APICALL
  240. MouRemovePtr ( NOPTRRECT far *PtrRect,
  241.                USHORT MouseHandle )
  242. {
  243.     return ERROR_MOUSE_NO_DEVICE ;
  244. }
  245.  
  246. #pragma argsused
  247. //
  248. //    Allow the pointer to become visible again
  249. //
  250. USHORT _APICALL
  251. MouDrawPtr ( USHORT MouseHandle )
  252. {
  253.     return ERROR_MOUSE_NO_DEVICE ;
  254. }
  255.  
  256. #pragma argsused
  257. //
  258. //    Reconfigure the mouse driver
  259. //
  260. USHORT _APICALL
  261. MouSetDevStatus ( USHORT far *PtrDevStatus,
  262.                   USHORT MouseHandle )
  263. {
  264.     return ERROR_MOUSE_NO_DEVICE ;
  265. }
  266.  
  267. #pragma argsused
  268. //
  269. //    Subsystem calls !
  270. //
  271. USHORT _APICALL MouInitReal ( const UCHAR far * );
  272. USHORT _APICALL MouSynch ( USHORT MouseHandle );
  273.